'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, BOOLEAN } = app.Sequelize;

  const UserImage = app.model.define('user_image', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    user_id: INTEGER,
    image: STRING(255),
    online: BOOLEAN,
    index: INTEGER,
    create_time: DATE,
    update_time: DATE,
    delete_time: DATE
  });

  return UserImage;
};
